import { createRouter, createWebHashHistory } from 'vue-router'
import { AppRouter } from './routers'
import { beforeEach, afterEach } from './guards'
const router = createRouter({
  history: createWebHashHistory(),
  routes: AppRouter
})
// 全局前置导航守卫
router.beforeEach(beforeEach)
// 全局后置导航守卫
router.afterEach(afterEach)
export default router

